//package me.firstapp.weixin.controller.huafei;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.ModelMap;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.servlet.ModelAndView;
//import org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap;
//
//import me.firstapp.module.weixin.order.MobileFareOrder;
//import me.firstapp.service.weixin.huafei.MobileFareOrderService;
//import me.firstapp.weixin.controller.base.BaseController;
//
//@Controller
//public class HuaFeiController extends BaseController {
//
//	@Autowired
//	private MobileFareOrderService mobileFareOrderService;
//
//	@RequestMapping("/page/huaFeiPage.htm")
//	public ModelAndView huaFeiPage(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) {
//		super.getCurrentLoginOpenId(request, response);
//		return new ModelAndView("huafei/deposit", modelMap);
//	}
//
//	@RequestMapping("/page/confirmHfOrderPage.htm")
//	public ModelAndView confirmHuaFeiOrderPage(String name, HttpServletRequest request, HttpServletResponse response,
//			RedirectAttributesModelMap modelMap) {
//		String openId = getCurrentLoginOpenId(request, response);
//		MobileFareOrder mobileFareOrder = mobileFareOrderService.executeCreateMobileFareOrder(openId, name + "贝币", null,
//				null);
//		modelMap.addFlashAttribute("mobileFareOrder", mobileFareOrder);
//		request.getSession().setAttribute("mobileFareOrder", mobileFareOrder);
//		return new ModelAndView("redirect:/page/confirmHfOrder.htm", modelMap);
//	}
//
//	@RequestMapping("/page/confirmHfOrder.htm")
//	public ModelAndView confirmHfOrder(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) {
//		getCurrentLoginOpenId(request, response);
//		if (!modelMap.containsAttribute("mobileFareOrder")) {
//			modelMap.put("mobileFareOrder", request.getSession().getAttribute("mobileFareOrder"));
//		}
//		return new ModelAndView("huafei/confirmHfOrder", modelMap);
//	}
//}
